package polymorphicTask.perimeterAndArea;

public class Test {
    public static void main(String[] args) {
        Diagram d1=new Circle(10);
        d1.perimeter();
        d1.area();
        Diagram d2=new Parallelogram(3,4,5);
        d2.perimeter();
        d2.area();
        Diagram d3=new Rectangle(7,8);
        d3.perimeter();
        d3.area();
        Diagram d4=new Trapezoid(3,5,3,2);
        d4.perimeter();
        d4.area();
    }
}
